﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Soft
{
    /// <summary>
    /// 时间变化范围
    /// </summary>
    /// <typeparam name="T"></typeparam>
    /// <typeparam name="U"></typeparam>
    public interface IRange<T, U> : IComparable<IRange<T, U>> where T : struct
    {
     
        /// <summary>
        /// 开始时间
        /// </summary>
        T Start { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        T End { get; set; }


        /// <summary>
        /// 时间间隔
        /// </summary>
        U Span { get; }

    }
}
